cmake_minimum_required(VERSION 3.14)

# set the project name
project(MyProject)

include(build/conanbuildinfo.cmake)
conan_basic_setup()

# add the executable
file(GLOB_RECURSE main_sources CONFIGURE_DEPENDS src/main/*.cpp)
add_executable(main ${main_sources})

file(GLOB_RECURSE test_sources CONFIGURE_DEPENDS src/test/*.cpp)
add_executable(test ${test_sources})

target_link_libraries(main ${CONAN_LIBS})
target_link_libraries(test ${CONAN_LIBS})

target_compile_features(main PRIVATE cxx_std_20)
target_compile_features(test PRIVATE cxx_std_20)